<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name='viewport' content='width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0'>
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>移动端首页practice01</title>
  <link rel="icon" href="./favicon.ico">
  <link rel="stylesheet" href="./lib/fa/css/font-awesome.css">
  <link rel="stylesheet" href="./lib/mui/css/mui.css">
  <link rel="stylesheet" href="./css/common.css">
  <link rel="stylesheet" href="./css/product.css">
</head>
<body>
  <div class="lt_container">
    <div class="lt_header">
      <a class="icon_left mui-icon mui-icon-arrowleft" href="javascript:history.go(-1);"></a>
      <span>商品详情</span>
      <a class="icon_right mui-icon mui-icon-reload" href="javascript:location.reload();"></a>
    </div>
    <div class="lt_main">
      <!-- 区域滚动 -->
      <div class="mui-scroll-wrapper">
        <div class="mui-scroll">
          <!--这里放置真实显示的DOM内容-->
           <!--待渲染-->
          

        </div>
      </div>
    </div>
    <div class="lt_product_footer">
      <a class="go_cart mui-pull-left mui-btn mui-btn-link" href="cart.html">去购物车</a>
      <div class="right">
        <button class="add_cart mui-btn mui-btn-danger">加入购物车</button>
        <button class="mui-btn mui-btn-warning">立即购买</button>
      </div>
    </div>
  </div>
 

  <script type="text/template" id="tmp">
    
    <div class="mui-slider">
        <div class="mui-slider-group mui-slider-loop">
          <div class="mui-slider-item mui-slider-item-duplicate"><a href="javascript:;"><img src="{{pic[pic.length-1].picAddr}}" /></a></div>
          {{each pic v i}}
          <div class="mui-slider-item"><a href="javascript:;"><img src="{{v.picAddr}}" /></a></div>
          {{/each}}
          <div class="mui-slider-item mui-slider-item-duplicate"><a href="javascript:;"><img src="{{pic[0].picAddr}}" /></a></div>
        </div>
        <!-- 小圆点 -->
        <div class="mui-slider-indicator">
          {{each pic v i}}
          <div class="mui-indicator {{i===1?'mui-active':''}}"></div>
          {{/each}}
        </div>
    </div>    
        <div class="lt_pro_name item">
            <strong>{{proName}}</strong>
          </div>
          <div class="lt_price item">
            <i>价格:</i>
            <span class="price">&yen;{{price}}</span>
            <span class="oldPrice">&yen;{{oldPrice}}</span>
          </div>
          <div class="lt_size item">
            <i>尺码: </i>
            {{each sizeArray v i}}
            <span>{{v}}</span>
            {{/each}}
          </div>
          <div class="lt_num item">
            <i>数量</i>
            <div class="mui-numbox" data-numbox-step='1' data-numbox-min='1' data-numbox-max='{{num}}'>
                <button class="mui-btn mui-numbox-btn-minus" type="button">-</button>
                <input class="mui-numbox-input" type="number" />
                <button class="mui-btn mui-numbox-btn-plus" type="button">+</button>
            </div>
            <span>剩余数量:{{num}}双</span>
          </div>
          <div class="lt_desc item">
            <i>详情</i>
            描述:
            {{proDesc}}
          </div>
    

    
  </script>
  


  
  <script src="./lib/zepto/zepto.min.js"></script>
  <script src="./lib/mui/js/mui.js"></script>
  <script src="./lib/artTemplate/template-web.js"></script>
  <script src="./js/common.js"></script>
  <script src="./js/product.js"></script>
</body>
</html>